import asyncio
# from aiohttp import E
async def asy1():
    for x in range(20):
        print('11111111111111111111111')
        await asyncio.sleep(0)
        print('22222222222222222222222')


async def asy2():
    for x in range(20):
        print('aaaaaaaaaaaaaaaaaaaa')
        await asyncio.sleep(0)
        print('bbbbbbbbbbbbbbbbbbbb')


async def main():
    task1 = asyncio.create_task(asy1())
    task2 = asyncio.create_task(asy2())
    tasks = [task1,task2]

    await asyncio.wait(tasks)


if __name__ == '__main__':
    asyncio.run(main())
